package com.fzkjjt.nacos.controller;

import com.fzkjjt.nacos.api.DiscoveryApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: optms-nacos
 * @description:
 * @author: FangZhen
 * @create: 2020-08-12 14:17
 **/
@RestController
@RequestMapping("/discovery")
public class DiscoveryController {

    @Resource
    DiscoveryApi discoveryApi;

    @GetMapping("/get")
    public String get(String serviceName) {
        return discoveryApi.get(serviceName);
    }


}
